﻿using Craftsman.Core.Domain.Repositories;
using Craftsman.xCoronavirus.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace Craftsman.xCoronavirus.Domain.Contract
{
    public interface IModifyRequestRepository : IRepository
    {
        ModifyRequest CreatModifyRequest(ModifyRequest entity);
        ModifyRequest GetModifyRequest(string guid);
        ModifyRequest UpdateModifyRequest(ModifyRequest entity);
        List<ModifyRequest> GetAllModifyRequests(bool withDetails = false);
        bool ExistModifyRequest(Expression<Func<ModifyRequest, bool>> predicate);

        IQueryable<ModifyRequest> GetAll();
    }
}
